package hospital.service;

import hospital.model.hosp.Department;
import hospital.vo.hosp.DepartmentVo;
import org.springframework.data.domain.Page;
import org.springframework.transaction.annotation.Transactional;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * @author: Hu Tingtao
 * @description:
 */

public interface DepartmentService {
    @Transactional
    //保存或修改科室的数据
    void saveOrUpdate(Map<String, Object> parameterMap);

    //得到科室的信息
    Page<Department>  findDepartment(Map<String, Object> parameterMap );

    @Transactional
    //根据hoscode descode删除科室信息
    void deleteDepartment(Map<String, Object> parameterMap);

    //根据医院的编号，得到所有的科室列表
    List<DepartmentVo> getDepartmentList(String hoscode);

    //通过hoscode depcode 获取科室名称
    String getDepName(String hoscode, String depcode);

    //通过hoscode depcode 获取科室
    Department getDepartment(String hoscode, String depcode);

}
